using WatiN.Core;

namespace YatFram.Browser.Watin
{
    public class WatinTextBox : WatinHtmlElement, InputElement
    {
        private readonly TextField textBox;

        public WatinTextBox(TextField textBox) : base(textBox)
        {
            this.textBox = textBox;
        }

        public void EnterText(string value)
        {
            textBox.TypeText(value);
        }

        public string Value
        {
            get { return textBox.Value; }
        }
    }
}